.PHONY: all build test

all: build test

build: libbase64.a

base64.o: base64.cc
	g++ -Wall -O2 -c $^
modp_b64.o: modp_base64/modp_b64.cc
	g++ -Wall -O2 -c $^

libbase64.a: base64.o modp_b64.o
	ar crv $@ $^; rm $^

test: libbase64.a
	g++ -Wall -O2 -std=c++14 -o test test_base64.cc $^
